package com.cain.DontTapTheWhiteTile.tool;

/**
 * Created by Cain on 2016/6/16.
 * 用于处理实数的公共类
 */
public class MyNumber {

    /**
     * 禁止构造实体类
     */
    private MyNumber() {

    }

    /**
     * 毫秒转化成小时分钟秒和毫秒
     * @param millis
     * @return
     */
    public static long[] millisToFormat(long millis) {
        long[] result = new long[4];
        result[3] = millis % 1000;
        result[2] = (millis / 1000) % 60;
        result[1] = (millis / 1000 / 60) % 60;
        result[0] = millis / 1000 / 60 / 60;
        return result;
    }
}
